package config

import (
	"fmt"

	"databasex"
)

var TIDBHost = databasex.ServerConfig.Host

var TIDBDSN = fmt.Sprintf("%s:%s@tcp(%s:%v)/%s?charset=utf8mb4&tls=%v", TIDBUser, TIDBPassword, TIDBHost, TIDBPort, TIDBDatabase, TIDBUseSSL)

const (
	TIDBUser     = "root"
	TIDBPassword = ""
	TIDBPort     = 4000
	TIDBDatabase = "test"
	TIDBUseSSL   = false
)
